let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n169,
                    i =
                    (this && this.__extends) ||
                    ((_n169 = function n(t, e) {
                            return (_n169 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n169(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.SustainMergePanel = void 0);
                var a = t('UIPanel'),
                    s = t('UIViewRes'),
                    c = t('UILayer'),
                    l = t('UIMrg'),
                    u = t('ConstantCfg'),
                    h = cc._decorator,
                    p = h.ccclass,
                    f =
                    (h.property,
                        (function(t) {
                            function e() {
                                return (null !== t && t.apply(this, arguments)) || this;
                            }
                            return (
                                i(e, t),
                                (e.prototype.onInit = function() {
                                    t.prototype.onInit.call(this),
                                        (this._anim = this.view.getComponent(cc.Animation)),
                                        (this._root = this.view.getChildByName('root')),
                                        (this._item = this._root.getChildByName('item')),
                                        this.removeListenerTouch();
                                }),
                                (e.prototype.onShow = function() {
                                    t.prototype.onShow.call(this),
                                        (this._root.opacity = 0),
                                        (this._root.scale = 2),
                                        (this._item.opacity = 0),
                                        (this._item.scale = 0),
                                        (this._rootEffect = !0),
                                        cc
                                        .tween(this._root)
                                        .to(0.1, {
                                            opacity: 255,
                                            scale: 1
                                        })
                                        .call(this.itemEffect.bind(this))
                                        .start();
                                }),
                                (e.prototype.onDataChanged = function(e) {
                                    t.prototype.onDataChanged.call(this, e);
                                    for (
                                        var o = e.count.toString(), n = 0; n < this._item.children.length; n++
                                    ) {
                                        this._item.children[n].active =
                                            this._item.children[n].name == o;
                                    }
                                    this._rootEffect || this.itemEffect();
                                }),
                                (e.prototype.itemEffect = function() {
                                    (this._item.opacity = 0),
                                    (this._item.scale = 0),
                                    (this._rootEffect = !1),
                                    this._item.stopAllActions(),
                                        this._root.stopAllActions(),
                                        cc
                                        .tween(this._item)
                                        .to(0.1, {
                                            opacity: 255,
                                            scale: 2
                                        })
                                        .to(0.1, {
                                            scale: 1
                                        })
                                        .delay(0.5)
                                        .call(this.closeEffect.bind(this))
                                        .start();
                                }),
                                (e.prototype.closeEffect = function() {
                                    cc.tween(this._root)
                                        .to(0.5, {
                                            opacity: 0
                                        })
                                        .call(this.doClose.bind(this))
                                        .start();
                                    var t = this.getData().count,
                                        e = this.getData().grid;
                                    if (e) {
                                        var o = u.ConstantCfg.ins.getValues(17);
                                        e.yieldMoney(o[t - 1]);
                                    }
                                }),
                                (e.prototype.doClose = function() {
                                    l.UIMrg.close(this);
                                }),
                                (e.RES = new s.UIViewRes(
                                    'SustainMergeView',
                                    'Battle',
                                    c.UILayer.PopLayer
                                )),
                                r([p('SustainMergePanel')], e)
                            );
                        })(a.default));
                (o.SustainMergePanel = f), console.log("end");
            module.exports =  e.exports;